package com.cmj.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cmj.domain.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    List<String> selectRoleKeyByUserId(Long userId);

    @Select("select role_id from sys_user_role where user_id = #{id}")
    Long[] getAllUserRole(Long id);
}